import { createSSRApp } from "vue";
import App from "./App.vue";
// Pinia 持久化插件
import { createUnistorage } from "pinia-plugin-unistorage"

//导入Pinia
import {createPinia} from 'pinia'
export function createApp() {
  const app = createSSRApp(App)

  //创建pinia实例
  const pinia = createPinia()

  // 应用 Pinia 插件
  pinia.use(createUnistorage())

  app.use(pinia)

  return {
    app,
  }
}
